package com.hencoder.animate.Utils;

import android.content.res.Resources;
import android.util.TypedValue;

/**
 * hencoderplus
 * Created by lzw on 2018/11/2. 16:37:59
 * 邮箱：632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
public class Util {
    public static float dp2Pixel(int dp){
        return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,dp, Resources.getSystem().getDisplayMetrics());
    }
}
